import request from "../utils/request";

//分页用户条件查询
 export  default {
   getinspectionRecordLists(current, limit, query) {
     return request({
       url: `/inspection-record/pageInspection/${current}/${limit}`,
       method: 'post',
       data: query,
     })
   },
   inspectionInit(){
     return request({
       url: `/inspection-record/inspectionInit`,
       method: 'post',
     })
   },
   savevInspection(inspection){
     return request({
       url: `/inspection-record/savevInspection`,
       method: 'post',
       data: inspection
     })
   },

   removeInspectionId(id) {
     return request({
       url: `/inspection-record/removeInspection/${id}`,
       method: 'get',

     })
   },

   findByIdInspection(id) {
     return request({
       url: `/inspection-record/findByIdInspection/${id}`,
       method: 'get'
     })
   },
   updateInspection(inspection){
     return request({
       url: `/inspection-record/updateInspection`,
       method: 'post',
       data: inspection
     })
   }
 }
